package com.wcy.service.impl;

import com.wcy.bean.Shanghu;
import com.wcy.mapper.ShanghuMapper;
import com.wcy.service.ShanghuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShanghuServiceImpl implements ShanghuService {

    @Autowired
    private ShanghuMapper mapper;

    //列表
    @Override
    public List<Shanghu> selectList(/*String name,String boss*/Shanghu shanghu) {
        return mapper.selectList(shanghu);
    }

    @Override
    public int deleteById(Integer id) {
        return mapper.deleteById(id);
    }

    @Override
    public int insertSh(/*String name, String boss, String unit, String createTime, String address*/Shanghu shanghu) {
        return mapper.insertSh(/*name,boss,unit,createTime,address*/ shanghu);
    }

    @Override
    public int deleteByIds(Integer[] ids) {
        return mapper.deleteByIds(ids);
    }

    @Override
    public Shanghu getShById(Integer id) {
        return mapper.getShById(id);
    }

    @Override
    public int UpdateById(Shanghu shanghu) {
        return mapper.UpdateById(shanghu);
    }
}
